<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="${staticServer}/inc/style/main.css" />
<link rel="stylesheet" href="${staticServer}/inc/style/page.css" />
<link rel="stylesheet" href="${staticServer}/css/work_today.css" />
<link rel="stylesheet" href="${staticServer}/inc/style/date/datepicker.css" />
<script src="${staticServer}/inc/js/jquery.js"></script>
<script src="${staticServer}/inc/js/pageset.js"></script>
<script src="${staticServer}/inc/js/datepicker.js"></script>
<script src="${staticServer}/inc/js/infopad.js?2.2"></script>

</head>
<script>
           $(function(){

           });

          var selectMsg = function(){
            	var dateday = $("#dateday").val();
	            var datemoth = $("#datemoth").val();
	             var name = $("#name").val();
	            window.location.href=encodeURI("${contextPath}/recruitment/recruitment_list.htm?dateday="+dateday+"&datemoth="+datemoth+"&name="+name);
           }

</script>
<body>
<input type="hidden" id="id" value="<#if period??>${period.id}</#if>">
	<div id="container">
		<div id="title">招聘信息</div>
		
		<table class="form_table">
			<tbody>
			<tr>
			   <td>
				    <label for="nickname">按日查询：</label> 
					<input type="text" id="dateday" value="" rel="DATE::Y-m-d"/>
					<label for="nickname">按月查询：</label>
					<input type="text" id="datemoth" value="" rel="DATE::Y-m"/>
					<label for="nickname">按姓名查询：</label>
					<input type="text" id="name" value=""  />
					<input type="button" value=" 查 询 " onclick="selectMsg()" />
					<a href="${contextPath}/recruitment/add_recruitment.htm"><input type="button" value=" 添加招聘信息 "></a>	
				</td>
			</tr>
			
			</tbody>
		
		<table>
			<tr class="fields">
				<th width="70">姓名</th>
				<th width="30">性别</th>
				<th width="100">电话号码</th>
				<th width="100">学历</th>
				<th width="100">专业</th>
				<th width="90">院校</th>
				<th width="100">应聘岗位</th>
				<th width="50">地区</th>
				<th width="100">中心</th>
				<th width="50">来源</th>
				<th width="80">是否成功</th>
				<th width="50">类型</th>
				<th width="100">邀约状况</th>
				<th width="100">面试日期</th>
				<th width="50">时间</th>
				<th width="80">面试地址</th>
				<th width="80">操作</th>
			</tr>
			<#list list as list>
				<tr class="even_row">
					<td align="center"><#if list.name??>${list.name}</#if></td>
					<td align="center">
					<#if list.sex?exists>
                       <#if list.sex=="0">女</#if>
                       <#if list.sex=="1">男</#if>
                    </#if>
                    </td>
					<td align="center"><#if list.phone??>${list.phone}</#if>
					<td align="center"><#if list.education??>${list.education}</#if>
					<td align="center"><#if list.major??>${list.major}</#if>
					<td align="center"><#if list.university??>${list.university}</#if>
					<td align="center"><#if list.post??>${list.post}</#if>
					<td align="center"><#if list.region??>${list.region}</#if>
					<td align="center"><#if list.center??>${list.center}</#if>
					<td align="center"><#if list.source??>${list.source}</#if>
					
					 <td align="center">
					<#if list.success?exists>
                       <#if list.success=="0">不成功</#if>
                       <#if list.success=="1">成功</#if>
                    </#if>
                    </td>
					<td align="center">
					<#if list.type?exists>
                       <#if list.type=="0">投递</#if>
                       <#if list.type=="1">搜索</#if>
                    </#if>
                    </td>
                   
					<td align="center"><#if list.invitations??>${list.invitations}</#if></td>
					<td align="center"><#if list.dateofinvitation??>${list.dateofinvitation}</#if></td>
					<td align="center"><#if list.time??>${list.time}</#if></td>
					<td align="center"><#if list.address??>${list.address}</#if></td>
	                <td align="center"><a href="${contextPath}/recruitment/add_recruitment.htm?id=${list.id}">编辑</a></td>
				</tr>
			</#list>
			
			
		</table>
	</div>
	<div id="pager" style="width: 820px;">
	<ul id="pagination">
		<#if page??>
		<#if page.pagetotal?? && page.pagetotal!="0">
	<#assign pagetotal = page.pagetotal>
	<#else>
	<#assign pagetotal = 1>
	</#if>
			<#if page.currpage??>
	<#assign currpage = page.currpage>
	<#else>
	<#assign currpage = 1>
	</#if>
				<#if currpage==1 >
					<li class="previous-off">上一页</li>
					<#else>
					<li class="previous"><a href="${contextPath}/recruitment/recruitment_list.htm?currPage=${currpage-1}&dateday=${dateday}&datemoth=${datemoth}&name=${name}">上一页</a></li>
					</#if>
					
		<#if pagetotal<=11>
			<#list 1..pagetotal as index_up>  
	           <#if currpage==index_up > 
	           		<li class="current">${index_up}</li>
	           <#else>
	           		<li><a href="${contextPath}/recruitment/recruitment_list.htm?currPage=${index_up}&dateday=${dateday}&datemoth=${datemoth}&name=${name}">${index_up}</a></li>  
	           </#if>  
			</#list>  
		<#else>
			<#if currpage<=8 >
				<#list 1..9 as index_up>  
	           	<#if currpage==index_up >  
	            	<li class="current">${index_up}</li>
	           	<#else>  
	               <li><a href="${contextPath}/recruitment/recruitment_list.htm?currPage=${index_up}&dateday=${dateday}&datemoth=${datemoth}&name=${name}">${index_up}</a></li> 
	           	</#if>
	           	</#list>  
	           	<li>...</li>
	           	<li><a href="${contextPath}/recruitment/recruitment_list.htm?currPage=${pagetotal}&dateday=${dateday}&datemoth=${datemoth}&name=${name}">${pagetotal}</a></li>  
				
			<#elseif (currpage>= 9 && currpage<pagetotal-7)  >	
				<li><a href="${contextPath}/recruitment/recruitment_list.htm?currPage=1&dateday=${dateday}&datemoth=${datemoth}&name=${name}">1</a></li>  
				<li>...</li>
				<#list currpage-3..currpage+3 as index_up>  
	           	<#if currpage==index_up >  
	             <li class="current">${index_up}</li>
	           	<#else>  
	               <li><a href="${contextPath}/recruitment/recruitment_list.htm?currPage=${index_up}&dateday=${dateday}&datemoth=${datemoth}&name=${name}">${index_up}</a></li>  
	           	</#if>
	           	</#list>
				<li>...</li>
	           	<li><a href="${contextPath}/recruitment/recruitment_list.htm?currPage=${pagetotal}&dateday=${dateday}&datemoth=${datemoth}&name=${name}">${pagetotal}</a></li>   
			<#else>
				<li><a href="${contextPath}/recruitment/recruitment_list.htm?currPage=1">1</a></li> 
				<li>...</li>
				<#list pagetotal-8..pagetotal as index_up>  
	           	<#if currpage==index_up >  
	             <li class="current">${index_up}</li>
	           	<#else>  
	               <li><a href="${contextPath}/recruitment/recruitment_list.htm?currPage=${index_up}&dateday=${dateday}&datemoth=${datemoth}&name=${name}">${index_up}</a></li> 
	           	</#if>
				</#list>  
			</#if>
			
		</#if> 
		<#if currpage==pagetotal >
		 	<li class="previous-off">下一页</li>
		<#else>
			<li class="previous"><a href="${contextPath}/recruitment/recruitment_list.htm?currPage=${currpage+1}&dateday=${dateday}&datemoth=${datemoth}&name=${name}">下一页</a></li>
		</#if>
		<li class="pageinfo">共${page.total}条记录</li>
	</#if>
	</ul>
	</div>
	<div class="emptyline clear"></div>
</body>
</html>